import {REACT_TEXT} from './constants';

/**
 * @description: 可以把任意的元素包装成虚拟DOM对象,方便diff
 * @param {*} element
 * @return {*}
 */
export function wrapToVdom(element) {
  return typeof element === "string" || typeof element == "number"
    ? { type: REACT_TEXT, props: { content: element } }
    : element;
}


export function shallowEquals(obj1, obj2) {
  if (obj1 === obj2) {
    return false;
  }
  let keys1 = Object.keys(obj1);
}